package com.atguigu.realtime.publisher.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.TimeUnit;

public class GetTimeUtil {

    public static String getToday(){
        Date today = new Date();
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd");
        return sdf.format(today);
    }

    public static void main(String[] args) {
        System.out.println(GetTimeUtil.getToday());
    }
}
